package com.nuoniu.sibanyun.mapper.crm;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuoniu.sibanyun.entity.crm.CrmGoodsConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 商品配置 Mapper 接口
 * </p>
 *
 * @author baiqiang
 * @since 2020-07-20
 */
@Mapper
@Component
public interface CrmGoodsConfigMapper extends BaseMapper<CrmGoodsConfig> {

    @Select("select * from crm_goods_config order by years")
    List<CrmGoodsConfig> getGoodsConfigList();

    @Select("select * from crm_goods_config where status = 0 order by years")
    List<CrmGoodsConfig> goodsConfigList();
}
